import request from '@/utils/request'

// 查询旁白列表
export function listNarration(query) {
  return request({
    url: '/system/narration/list',
    method: 'get',
    params: query
  })
}

// 查询旁白详细
export function getNarration(id) {
  return request({
    url: '/system/narration/' + id,
    method: 'get'
  })
}

// 新增旁白
export function addNarration(data) {
  return request({
    url: '/system/narration',
    method: 'post',
    data: data
  })
}

// 修改旁白
export function updateNarration(data) {
  return request({
    url: '/system/narration',
    method: 'put',
    data: data
  })
}

// 删除旁白
export function delNarration(id) {
  return request({
    url: '/system/narration/' + id,
    method: 'delete'
  })
}
